#!/bin/bash
sleeptime=0
cont=100
echo "请输入睡眠间隔时间"
read sleeptime

while
	[ $cont -ge 0 ]
do
	sleep $sleeptime
	ttime=`date +"%Y-%m-%d %H:%M:%S"`
	echo $ttime
done

